songs = ["地球之盐","地球之盐","地球之盐","齐天","齐天","巨鹿","神树","神树","神树","降临","斗牛","斗牛","斗牛","斗牛","七重人格","七重人格"]

# 循环遍历每一个元素
song = "巨鹿"
for song in songs:
    print(song)

# 如果遍历到某一个前面出现过，存到一个[]
from collections import Counter #引入Counter
chongfu = dict(Counter(songs))
print ([key for key,value in chongfu.items()if value > 1])

# 计算重名个数
print("地球之盐：",songs.count("地球之盐"))
print("齐天：",songs.count("齐天"))
print("神树：",songs.count("神树"))
print("斗牛：",songs.count("斗牛"))
print("七重人格：",songs.count("七重人格"))